package cn.magicduck.demo;

import java.util.concurrent.TimeUnit;

/**
 * @projectName: design-pattern-demo
 * @className: CacheService
 * @description: 无须描述
 * @author: MagicDuck
 * @create: 2020-07-17 13:50
 **/
public interface CacheService {

    String get(final String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit timeUnit);

    void del(String key);
}
